/* LEGAL PAGE */

.legal-hero {
  position: relative;
  min-height: calc(88vh - 82px);
  margin-top: 82px;
  display: flex;
  align-items: flex-end;
  background: #221713;
  overflow: hidden;
}

.legal-hero-media,
.legal-hero-media img,
.legal-hero-overlay {
  position: absolute;
  inset: 0;
}

.legal-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.03) brightness(0.62);
}

.legal-hero-overlay {
  background:
    linear-gradient(112deg, rgba(24, 17, 13, 0.9) 0%, rgba(37, 22, 19, 0.76) 40%, rgba(107, 57, 56, 0.36) 100%),
    radial-gradient(circle at top right, rgba(200, 164, 107, 0.16), transparent 24%);
  z-index: 1;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -120px -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 164, 107, 0.26) 0%, rgba(200, 164, 107, 0) 70%);
  pointer-events: none;
  z-index: 2;
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 36px
    );
  opacity: 0.35;
  z-index: 2;
}

.legal-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1380px;
  margin: 0 auto;
  padding: 72px 8% 86px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e79830;
}

.hero-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.legal-hero-content h1 {
  width: min(840px, 100%);
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -1.5px;
  font-weight: 600;
}

.legal-hero-content p {
  width: min(680px, 100%);
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.legal-intro,
.legal-content-section {
  padding-left: 8%;
  padding-right: 8%;
}

.legal-intro {
  padding-top: 110px;
  padding-bottom: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.92fr);
  gap: 34px;
  align-items: end;
  background:
    radial-gradient(circle at top right, rgba(200, 164, 107, 0.18), transparent 26%),
    linear-gradient(180deg, #fffdf8 0%, #f3eadb 100%);
}

.legal-intro-copy h2,
.legal-summary-card h2 {
  margin-bottom: 18px;
  color: #2b201d;
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.8px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: #722f37;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.legal-intro-copy p,
.legal-content p,
.legal-content li,
.summary-list li {
  color: #6c605a;
  font-size: 18px;
  line-height: 1.82;
}

.legal-highlights {
  display: grid;
  gap: 16px;
}

.highlight-card {
  padding: 24px 24px 22px;
  border: 1px solid rgba(114, 47, 55, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(72, 50, 33, 0.08);
}

.highlight-card strong {
  display: block;
  margin-bottom: 8px;
  color: #2b201d;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.6px;
}

.highlight-card span {
  color: #726560;
  font-size: 15px;
  line-height: 1.65;
}

.legal-content-section {
  padding-top: 72px;
  padding-bottom: 120px;
  background:
    radial-gradient(circle at bottom left, rgba(200, 164, 107, 0.16), transparent 22%),
    linear-gradient(180deg, #f3eadb 0%, #fffdf8 100%);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.legal-summary-card {
  position: sticky;
  top: 116px;
  padding: 28px 26px 30px;
  border: 1px solid rgba(114, 47, 55, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(72, 50, 33, 0.08);
}

.legal-summary-card h2 {
  font-size: 30px;
}

.summary-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  position: relative;
  padding-left: 28px;
}

.summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #722f37;
  box-shadow: 0 0 0 6px rgba(114, 47, 55, 0.1);
}

.legal-content {
  display: grid;
  gap: 24px;
}

.legal-block {
  padding: 30px 30px 34px;
  border: 1px solid rgba(114, 47, 55, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(72, 50, 33, 0.08);
}

.block-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #722f37;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.block-index::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.legal-block h3 {
  margin-bottom: 18px;
  color: #2b201d;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.legal-block p + p {
  margin-top: 14px;
}

.legal-list {
  display: grid;
  gap: 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.legal-list li {
  position: relative;
  padding-left: 34px;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #722f37;
  box-shadow: 0 0 0 6px rgba(114, 47, 55, 0.1);
}

.legal-block-accent {
  background: linear-gradient(180deg, rgba(114, 47, 55, 0.05) 0%, rgba(114, 47, 55, 0.02) 100%);
}

.legal-block-security {
  background:
    linear-gradient(160deg, rgba(114, 47, 55, 0.96) 0%, rgba(65, 29, 34, 0.98) 100%);
}

.legal-block-security .block-index,
.legal-block-security h3,
.legal-block-security p {
  color: #fff8f2;
}

.legal-block-security .block-index::before {
  background: currentColor;
}

.legal-content a {
  color: #722f37;
  transition: color 0.3s ease;
}

.legal-content a:hover {
  color: #af5560;
}

.footer-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-flag {
  width: 18px;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.footer-legal a.active {
  display: inline-block;
  position: relative;
  color: #722f37;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(200, 164, 107, 0.08);
}

.footer-legal a.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px rgba(200, 164, 107, 0.2);
}

/* HEADER RESPONSIVE */

.menu-toggle {
  width: 34px;
  height: 26px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 2000;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: #222;
  transition: 0.35s ease;
}

.menu-toggle:hover {
  transform: none;
}

@media (max-width: 1360px) {
  .legal-hero-content,
  .legal-intro,
  .legal-content-section {
    padding-left: 6%;
    padding-right: 6%;
  }
}

@media (max-width: 1200px) {
  .legal-intro {
    grid-template-columns: 1fr;
  }

  .legal-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-summary-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 1100px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 18px;
    right: 18px;
    width: min(360px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    padding: 86px 26px 32px;
    background: #fffdf8;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 22px;
    border: 1px solid rgba(114, 47, 55, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(33, 18, 12, 0.16);
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(18px) scale(0.98);
    transition:
      opacity 0.35s ease,
      visibility 0.35s ease,
      transform 0.35s ease;
    z-index: 1500;
  }

  .main-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
  }

  .main-nav a {
    width: 100%;
    padding: 10px 0;
    font-size: 20px;
    border-bottom: 1px solid rgba(114, 47, 55, 0.08);
  }
}

@media (max-width: 992px) {
  .site-header {
    height: 74px;
  }

  .header-inner {
    padding: 0 24px;
  }

  .logo img {
    width: 115px;
  }

  .legal-hero {
    min-height: calc(82vh - 74px);
    margin-top: 74px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 68px;
  }

  .header-inner {
    padding: 0 18px;
  }

  .logo img {
    width: 100px;
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    margin-right: 14px;
    background: #722f37;
    border: 1px solid rgba(114, 47, 55, 0.18);
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(114, 47, 55, 0.18);
    z-index: 3000;
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.3);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 68px;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 68px);
    padding: 20px 22px 28px;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 14px;
    border: none;
    border-top: 1px solid rgba(114, 47, 55, 0.08);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 20px 35px rgba(33, 18, 12, 0.08);
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 0.35s ease,
      visibility 0.35s ease,
      transform 0.35s ease;
    z-index: 1500;
  }

  .main-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    width: 100%;
    position: relative;
    padding: 10px 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #2b201d;
    border-bottom: 1px solid rgba(114, 47, 55, 0.08);
  }

  .main-nav a::after {
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #722f37;
    transform: none;
  }

  .legal-hero {
    min-height: 580px;
    margin-top: 68px;
  }

  .legal-hero-content {
    padding: 28px 24px 24px;
  }

  .hero-kicker {
    margin-bottom: 14px;
    font-size: 11px;
  }

  .legal-hero-content h1 {
    font-size: 34px;
    line-height: 1.06;
  }

  .legal-hero-content p {
    font-size: 15px;
    line-height: 1.7;
  }

  .legal-intro,
  .legal-content-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .legal-intro {
    padding-top: 84px;
    padding-bottom: 38px;
  }

  .legal-highlights {
    grid-template-columns: 1fr;
  }

  .legal-intro-copy p,
  .legal-content p,
  .legal-content li,
  .summary-list li {
    font-size: 16px;
    line-height: 1.72;
  }

  .legal-content-section {
    padding-top: 40px;
    padding-bottom: 84px;
  }

  .legal-summary-card,
  .legal-block {
    padding: 24px 20px 26px;
    border-radius: 28px;
  }

  .legal-summary-card h2,
  .legal-block h3 {
    font-size: 25px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo-link {
    justify-content: center;
  }

  .footer-socials {
    align-items: center;
  }

  .footer-country {
    justify-content: center;
  }

  .age-box {
    width: 92%;
    padding: 38px 24px;
  }

  .age-box img {
    width: 140px;
  }

  .age-box p {
    font-size: 17px;
  }

  .age-buttons {
    flex-direction: column;
  }

  .age-buttons button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .legal-hero {
    min-height: 520px;
  }

  .legal-hero-content,
  .legal-intro,
  .legal-content-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .legal-hero-content h1 {
    font-size: 29px;
  }

  .legal-intro-copy h2,
  .legal-summary-card h2,
  .legal-block h3 {
    font-size: 28px;
  }

  #backToTop {
    width: 48px;
    height: 48px;
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 390px) {
  .header-inner {
    padding: 0 14px;
  }

  .logo img {
    width: 92px;
  }

  .cart {
    font-size: 13px;
  }

  .cart-icon {
    width: 30px;
    height: 30px;
  }

  .main-nav {
    padding: 18px 16px 24px;
  }

  .menu-toggle {
    margin-right: 10px;
  }

  .main-nav a {
    font-size: 16px;
  }
}